import  java.util.Scanner;
public class CalculatorTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Calculator s=new Calculator();
        System.out.println("请选择将要进行得计算（加法、减法、乘法、除法）：");
        String d=in.next();
        if(d.equals("加法"))
        {
            s.jiafa();
        }
        else if(d.equals("减法"))
        {
            s.jianfa();
        }
        else if(d.equals("乘法"))
        {
            s.chengfa();
        }
        else if(d.equals("除法"))
        {
            s.chufa();
        }
        else
            System.out.println("输入错误。");
    }
}
